import request from '@/utils/request'

// 查询会议室申请列表
export function listMeetingroomApply(query) {
  return request({
    url: '/oa/meetingroomApply/list',
    method: 'get',
    params: query
  })
}

// 查询会议室申请详细
export function getMeetingroomApply(id) {
  return request({
    url: '/oa/meetingroomApply/' + id,
    method: 'get'
  })
}

// 新增会议室申请
export function addMeetingroomApply(data) {
  return request({
    url: '/oa/meetingroomApply',
    method: 'post',
    data: data
  })
}

// 修改会议室申请
export function updateMeetingroomApply(data) {
  return request({
    url: '/oa/meetingroomApply',
    method: 'put',
    data: data
  })
}

// 删除会议室申请
export function delMeetingroomApply(id) {
  return request({
    url: '/oa/meetingroomApply/' + id,
    method: 'delete'
  })
}
